﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMasterLogin.master" AutoEventWireup="true"
    EnableEventValidation="false" CodeFile="Student_Enroll.aspx.cs" Inherits="Student_Enroll" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .btn
        {
            margin-right: 20px;
            width: 120px;
        }
        .style2
        {
            font-size: xx-large;
            color: #007DAD;
            margin-bottom: 10px;
            text-align: left;
        }
        .row
        {
            color: #007DAD;
            margin-bottom: 10px;
        }
        .frame
        {
            width: 100%;
            border: 2px solid #007DAD;
            margin-top: 10px;
            padding: 5px 5px 5px 5px;
        }
        div p
        {
            text-align: center;
            font-size: medium;
        }
        .floatLeft
        {
            float: left;
            margin-right: 20px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <fieldset style="margin: 30px 0 20px 0; color: #007DAD;" class="frame">
        <legend class="style2"><b>Đăng ký</b></legend>
        <br />
        <div>
            <asp:Button ID="Button2" runat="server" Text="Đăng ký" CssClass="floatLeft" OnClick="Button2_Click" />
            <asp:Label ID="Label8" runat="server" Text="Bạn đã đăng ký thành công" ForeColor="Red"
                Visible="false"></asp:Label>
        </div>
        <br />
        <br />
        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CellPadding="10"
            OnRowCommand="GridView3_RowCommand" OnRowDeleting="GridView3_RowDeleting">
            <Columns>
                <asp:TemplateField HeaderText="Mã lớp học phần">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Width="170px" Text='<%# Eval("mahp") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên học phần">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Width="300px" Text='<%# Eval("tenhp") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tín chỉ">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Width="100px" CText='<%# Eval("sotc") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên giảng viên">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Width="150px" Text='<%# Eval("giangvien") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thời khóa biểu">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Width="150px" Text='<%# Eval("thoikhoabieu") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tuần học">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Width="100px" Text='<%# Eval("tuanhoc") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="btn" runat="server" Text="Xóa" CommandName="Delete_Course" CommandArgument='<%# Eval("mahp") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="lblData" runat="server" Text="Label"></asp:Label>
            </EmptyDataTemplate>
        </asp:GridView>
        <div style="margin: 0 auto; width: 300px;">
            <span style="float: left; margin-right: 20px;">Chọn nhóm</span>
            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="10">10</asp:ListItem>
                <asp:ListItem Value="11">11</asp:ListItem>
            </asp:RadioButtonList>
            <asp:Button ID="Button1" runat="server" Text="Chọn nhóm" OnClick="Button1_Click" />
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="10">
            <Columns>
                <asp:TemplateField HeaderText="Mã lớp học phần">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Width="170px" Text='<%# Eval("mahp") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên học phần">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Width="300px" Text='<%# Eval("tenhp") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tín chỉ">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Width="100px" CText='<%# Eval("sotc") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên giảng viên">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Width="150px" Text='<%# Eval("giangvien") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thời khóa biểu">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Width="150px" Text='<%# Eval("thoikhoabieu") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tuần học">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Width="100px" Text='<%# Eval("tuanhoc") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="lblData" runat="server" Text="Label"></asp:Label>
            </EmptyDataTemplate>
        </asp:GridView>
        <br />
        <br />
        <p>
            Học phần thực hành</p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="10"
            OnRowCommand="GridView2_RowCommand">
            <Columns>
                <asp:TemplateField HeaderText="Mã lớp học phần">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Width="170px" Text='<%# Eval("mahp") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên học phần">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Width="300px" Text='<%# Eval("tenhp") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tín chỉ">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Width="100px" CText='<%# Eval("sotc") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên giảng viên">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server" Width="150px" Text='<%# Eval("giangvien") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thời khóa biểu">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Width="150px" Text='<%# Eval("thoikhoabieu") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tuần học">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Width="100px" Text='<%# Eval("tuanhoc") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="btn" runat="server" Text="Chọn" CommandName="Select" CommandArgument='<%# Eval("mahp") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="lblData" runat="server" Text="Label"></asp:Label>
            </EmptyDataTemplate>
        </asp:GridView>
    </fieldset>
</asp:Content>
